package com.jzoffer;

import java.util.Scanner;

/*
*   替换空格
* */
public class ReplaceTab {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // next方法不合适
        String line = sc.nextLine();

        String res = replaceSpace(line);
        System.out.println(res);

        sc.close();
    }

    public static String replaceSpace(String str){
        if(str == null || str.length() < 1){
            return null;
        }
        StringBuilder sb = new StringBuilder();
        int len = str.length();

        for(int i = 0;i < len;i++){
            if(str.charAt(i) == ' '){
                sb.append('%').append('2').append('0');
            }else{
                sb.append(str.charAt(i));
            }
        }

        return sb.toString();

    }
}
